
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '加盟商管理',
    enableValidate: true
})

@Injectable()
export class DetailFormComponentViewmodelForm extends Form {
    @NgFormControl({
        id: 'merchantName_9615afa1_dqyy',
        name: "{{merchantName_9615afa1_dqyy}}",
        binding: 'merchantName',
        updateOn: 'blur',
        defaultI18nValue: '商户名称',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    merchantName: FormControl;

    @NgFormControl({
        id: 'merchantCode_519d018f_797z',
        name: "{{merchantCode_519d018f_797z}}",
        binding: 'merchantCode',
        updateOn: 'blur',
        defaultI18nValue: '商户编号',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    merchantCode: FormControl;

    @NgFormControl({
        id: 'companyType_a055831a_sdmc',
        name: "{{companyType_a055831a_sdmc}}",
        binding: 'companyType',
        updateOn: 'blur',
        defaultI18nValue: '企业类型',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    companyType: FormControl;

    @NgFormControl({
        id: 'merchantType_6b04b7dd_7g2x',
        name: "{{merchantType_6b04b7dd_7g2x}}",
        binding: 'merchantType',
        updateOn: 'blur',
        defaultI18nValue: '商户类型',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    merchantType: FormControl;

    @NgFormControl({
        id: 'realName_e300b65d_b2x8',
        name: "{{realName_e300b65d_b2x8}}",
        binding: 'realName',
        updateOn: 'blur',
        defaultI18nValue: '真实姓名',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    realName: FormControl;

    @NgFormControl({
        id: 'fullName_899e9050_86e0',
        name: "{{fullName_899e9050_86e0}}",
        binding: 'fullName',
        updateOn: 'blur',
        defaultI18nValue: '企业全称',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    fullName: FormControl;

    @NgFormControl({
        id: 'businessLicense_486974f9_opcf',
        name: "{{businessLicense_486974f9_opcf}}",
        binding: 'businessLicense',
        updateOn: 'blur',
        defaultI18nValue: '营业执照编码',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    businessLicense: FormControl;

    @NgFormControl({
        id: 'address_a09c14e2_69sh',
        name: "{{address_a09c14e2_69sh}}",
        binding: 'address',
        updateOn: 'blur',
        defaultI18nValue: '商户地址',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    address: FormControl;

    @NgFormControl({
        id: 'email_ebe02e9c_bp32',
        name: "{{email_ebe02e9c_bp32}}",
        binding: 'email',
        updateOn: 'blur',
        defaultI18nValue: '邮箱',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    email: FormControl;

    @NgFormControl({
        id: 'telephone_e8771eee_c6sh',
        name: "{{telephone_e8771eee_c6sh}}",
        binding: 'telephone',
        updateOn: 'blur',
        defaultI18nValue: '联系电话',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    telephone: FormControl;

    @NgFormControl({
        id: 'remark_4b902a26_9wfk',
        name: "{{remark_4b902a26_9wfk}}",
        binding: 'remark',
        updateOn: 'blur',
        defaultI18nValue: '备注',
    })
    remark: FormControl;

}